package com.srd.phone.utils.wheel.widget;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.shengrongdai.srd.R;
import com.srd.phone.activity.ReturnSucceedActivity;

public class PopupDialogView extends Dialog implements View.OnClickListener {

	private Context mContext;

	public PopupDialogView(Context context) {
		super(context, R.style.dialog);
		this.mContext = context;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_return_money);

		findViewById(R.id.tv_commit).setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {

		switch (v.getId()){
			case R.id.tv_commit:
				mContext.startActivity(new Intent(mContext, ReturnSucceedActivity.class));
				dismiss();
				break;
		}

	}

	public void dismiss(){
		super.dismiss();
	}
}